Reuse IRI and prefixed name matching for types.

Fixes #32.
Allow lists and blank nodes without leading space.