Add support for Object mapping type and enabled attribute.

We may need to rewrite the DSL in the future for handling different field types properly. But for the time being this solution seems to be fine.