Fix register and label hash codes

Previously, uninitialized registers or labels could return #f which
violates the contract of equal-hash-code (X -> Number).