removed dead code: since we populate fields with fields_get we don't need these tricks anymore to find fields broughts by _inherits
added test for to_rails_type