Properly pack geometry indices for vertices greater than 64k

Fixes #1647 

There aren't any unit tests for `ComponentDataType`, so I guess I can add them after someone signs off on this change as being the right way to solve the referenced issue.