clean up of Dict and DictNode

fix up of docs, tightening of typing, and minor implementation change
Merge pull request #11 from brendankenny/dictcleanup

clean up of Dict and DictNode