Illegal JS code was generated in the template with `stack-1` and `stack-2` references showing up because I was missing a few `pushStack`s in the ambiguous block helper code path.