array -> asarray as suggested by @mdboom
Updated tests following @neothemachine's suggestions