Fixed integer overflow on hash values
Fixed toArray() method of Matrix4