fix bug: cast to numpy array in inverse 1d transform of python version