Ensured that rdf:type statements are output using @type in JSON-LD.

Kudos to John Walker and Gregg Kellogg for raising the issue.