BUGFIX: changed the way the schema is retrieved from a schemaRdd. The schema fields weren't returned in the proper order