Test whether the schema is recursive reference type.

Test whether the target schema is a reference type, and test one thing more that the reference is self-recursive or not.