In my original code they weren't numbers. I did that here only to simplify the example.
Also I've since noticed that in section 5 of
rfc5229 ("Test string" ) there is an usage example where they use,
set "state" "${state} pending";
They wouldn't even be illustrating that construct at all there if it weren't supposed to be possible.
I submitted the ticket. Haven't heard back yet.