hist: add __pow__ and check_compatibility