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