MODE-2276 Improved efficiency of methods to add/remove/check mixins

The methods no longer gets `ChildReferences` when the added/removed mixin has no
have child node definitions. And they also don't look at the properties if the mixin
has no property definitions.