Fixed recursive binding bug

The template binder was recursively binding to its own element, which was
causing stack overflows when the root element context name was 'model'(the name
given to the context in the template binder.

Now it iterates through all children and stores an array of child bindings.