adds ability to print out original names

Currently, if you are using the NameResolver, and then pretty print the result, all names are printed as their fully qualified versions (where available).

This patch adds the ability to also print the names as present in the source document (disabled by default to preserve BC).