fix type guesser

These changes are needed to make a ReferenceOne work in the admin ...