changed to/fromArray back to primitives, and fixed them

Also added a bunch of testing stuff and started a bit on adding
simd types to the native codegen ffi