Extends now handles expression-based and array-based extensions per #206

Note that the two examples provided by http://twig.sensiolabs.org/doc/tags/extends.html#dynamic-inheritance function properly. Any expression may be used here, though if the expression does not produce a String or a valid template location, you're going to get a resource exception. This takes care of both sections as noted in the original issue #206.