[converter oarnge table to XasObject]: fix issue with shape. Was probably not handling spectra with nelements.