collada. Fix a bug in collada to geometry.

Change encoding type to int when writing component count.
Move vertex count to the beginning of the vertex data (from after the prefix).