better validation in ClassMetadata and sanity check move by assignments in UoW