A nested type should create a NestedJType from a ReferenceJType rather than a new ReferenceJType.