proper resolve/completion for elements declared in same tag
template cache resolve for routing
controller reference resolve caching
#WEB-11148 fixed