TreeHash tests localize warning handler
Tests - simplify constructs like map { CONST } 1..$n to (CONST) x $n