Fixed segfault in HistSet copy constructor and fixed initialisation ordering to remove -wreorder warnings