Add allocator parameter, update some parts of the interface to the new parameter order, reflow ptree.hpp to 80 cols with 4-char indent.