ISIS-344: now working with subtypes for Hidden.REFERENCES_PARENT

* the subtype check was the wrong way around.