fix template and component attribute refresh for long paths - fix #125

This PR fixes issue #125.
As you can see in the fix, there were actually 2 problems:
- the observers were not recalculated (I forgot this use case!)
- and the scope has to be switched to the container scope - this is due to a specificity of sub-templates and sub-components that have to manage two scopes: the scope of the container, and the scope of the sub-template. Current implementation has only one scope object, which is assigned to the template scope and not to the container scope, thus the fix..