Hashing problems fixed, other exceptions worked out.  Seems to generate
valid ingest documents now.