Fixed error setting triangles.

Submesh index stuff should be solid now.
closes #130, merged manually