Simplify ensure_memoryview
test w/array
#6322
Merged
ensure_memoryview
test w/array
#6322