Adding to-bytes support for PersistentHashSets