Keypath expressions are resolved when not rooted

Fixes #571.

Example would be a template like `{{#item}}{{foo[bar]}}{{/}}`. `foo` is not at the root and would not resolve to being under `item`.

@Rich-Harris This changes the logic to be, as I understand, consistent with other ref resolution in Ractive.