Update custom checkbox style, plus a few other fixes

See commit messages for what is included.
It collapses whitespace before/after. (Before if it's used after the opening `{%`, after if it's used before the closing `%}`.