Make IDCategory and IDType serializable
datadomain.image: allow editing id category and type.