Const-ref of parameter to the runWithXParser() functions
Reverting some const_casting, that was introduced with no real reason