Fix NPE when saving a domain class
Convert basic types (integer, boolean,...) to string when saving into Hstore