Implement Option::replace in the core library
#52003
+43
−0
Merged