Allow reserved words in type queries.

Fixes #181.