[WIP] Add array type interface

If the array would resize automatically (double the size of the allocated space if you run out of memory), we could ommit this (and just use `len`).