Add error checking and change GeometryInstanceAttribute to use typed arrays to be consistent.