Metadata-json: allow to specialize classes in template + fix in dataRest