Clean up arrays
Revert "Revert "New type system, prototype arrays""

This reverts commit fa299ca7b082b4d9ad55613d71b0d09393ce804a.
Merge branch 'arrays'
Fix tests for arrays