Enabled attaching of the editor (for direct access) to any part of the scope hierarchy

This commit allows for the editor object to be attached anywhere within the scope, as is usually the case when referencing models etc from attributes.

So for example `scope-instance="foo.bar.baz" ` and `scope-instance="$parent.foo" ` should now work as expected.

I extended the relevant spec to test for such a case.