Used preg_replace_callback() instead of /e

- Mere refactoring for PHP 5.5
- Also removed unused /i in CM_Render::_parseVariables()
Unit tests should pass with PHP 5.5
Fixed callback in CM_Dom_NodeList
Formatting
Merge pull request #1049 from fauvel/issue-1049

Use preg_replace_callback instead of /e (deprecated)