Thanks for your bug report. These behaviours are all intentional. $parms depends entirely on the tokenization of parameters across multiple routines/features in multiple contexts. That is what $parms returns. This cannot be changed. If you need to use $parms in these contexts, you will need to store its value.