Fool-proof submeshes editing

The only configuration for submeshes is now the count of indices. this
prevents errors (especially in the WebGL renderer). Validation is in
place.