Fix variable scope bug schmittjoh/twig.js#12

This bug was being caused by a faulty optimization. This fix disables the
optimization.
Improve the compatibility of the length filter with that of PHP Twig

This follows from the discussion at schmittjoh/twig.js#53

In short, the length filter shouldn't throw an error if the value being filtered
isn't countable.