fix object check for function in basis.array.from