Fix bitstring usage in mem ptree.