Implement CODE.DO*RANGE and supporting test case