Added hash method to regset.