Adding to-bytes support for PersistentHashSets

Simple, but useful. :-)