tensor: add back support for constants
Support for passing np.arrays as cython args