#4137 add tests etc for serializable metamodel