Changed unified array internal representation and made it throw NPEs on incompatible index/dimension situations for performance reasons. Allows us to avoid checkcasts of get() variations.