Used preg_replace_callback() instead of /e

- Mere refactoring for PHP 5.5
- Also removed unused /i in CM_Render::_parseVariables()