Simple refactorings. Reduces flog from 1112 to 700 (~-37%).

 I can't test this so I don't know if it works, but it should be straight up algebraic substitutions for everything.

```
#params    263 ->   1
#[]        609 -> 442
assignment 161 -> 164
```