Fix move constructor for class mapping.