Vector*, Quaternion toArray: cleaner code