Added support for entry types

This adds support for entry types, which are blank if you include the
'type' within the prune list.
Unfortunately it does not yet allow for pruning of nested data; this
could be achieved using a dot notation.

E.g. type.handle, type.name