Some tests around scope and incrementing. Rename ValueM to ValueRef as
that is more what it is doing.