Arrays are now copied to internal typecasted array when an instance array is set on the index + tests.