fabpot/Twig — pull request #878 by Tobion (2012-10-31 11:56:04+00:00)
Title: fix numeric keys in array

This is my idea to fix #766. We only convert the item to string when necessary (for `array_key_exists` calls`) and leave it as-is otherwise. I tested it and the tests all pass.
It can be refactored of course, so the conversion is done less often. But this way, you can see where the conversion is needed and where not.