Fixed hashcodes for optional numbers