Use the correct normals for maya exports with more than one mesh

Includes a few other minor refactorings. Fixes #5252