Unify template render calls. Clean up some of the whacky logic, use more sane names.
Also, clean up generated code of ListTag.