Improve error message from test helper
ParseTreeTransformer now inserts an array if returned from a method
Better naming
TIL that nested aliases may only contain a single command.

This commit fixes wrong generation and moves nested alias values into auxiliary aliases.

Also add some missing `transform` calls in methods after changes in a71d2d32fd.