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

This pull request accomodates structured/typed facts in the PuppetDB
import/export routine.