fix groovy evaluation of c, res and other unfortunately-named variables