Fix #15129

Add support for unit literals to const_eval.