When checking for value-semantics, also check parent classes

Before this commit Tria wouldn't check parent classes when checking for
value-semantics, which would result in compile-time errors later on as
types were registered in the Qt meta system which didn't have
value-semantics.