hammer2 - Fix bulkfree bug, Fix chain->parent bug, refactor dedup a bit