Improved JSON marshaller definition and registration for domain classes.