Fixed type issues in the glTF exporter.