Added support for RDF.type.

This passes the complex rdf datastream specs.

We'll want to hit a refactor run at the end of this to make everything a little easier to grok.