Reworked register_stabilize to work like register_canonicalize and register_specialize.