fix handling of _post_init in Hist classes and add unit test for HistStack