Use HashKeyBag iff it is bound (not based on GAP version)