shunting yard: typos, tests, as reviewed with lpauzner