Prevent pyobject types in nopython mode
Fix test after changing array structure