Register constant folding in stabilize and specialize too.