various cleanups
minor #1269 various cleanups (cordoval)

This PR was squashed before being merged into the master branch (closes #1269).

Discussion
----------

various cleanups

fix bool -> Boolean for consistency in other parts of twig's code removing
assignment to n as it is never used fix typo and docblock for consistency
remove line break not needed for consistency fix array docblock for
consistency

Commits
-------

cb651e8 various cleanups