Implement get_elem_storage_spec in VMArray.

FROGGS++
Handle natively typed lists in arg flatten.

Based on a patch from FROGGS++.