Updated source optimizer to preserve magic constants [ci skip]