add support for multidimensional arrays
add support for static arrays

This is a proof of concept for adding support for static arrays.
add overflow checks

Does the length should be checked after cast?