Only use the first word when checking the expected type

Allows handling of references.