(PDB-712) Adapt PDB import/export to structured facts.

This pull request accomodates structured/typed facts in the PuppetDB
import/export routine.
Merge pull request #1022 from wkalt/ticket/master/pdb-712-structured-export

(PDB-712) Structured facts export/import