Add support for working with previously bound variables inside accumulators