Only test last part of keypath for binding expressions. Fixes #1421

@Rich-Harris this seems like overkill, since `.` is replaced with `-` in expressions. Can we just test `keypath[ keypath.length - 1 ] === '}'`?