Fix issue with dynamic deps in obj[key]

The expression `object[key]` has dynamic deps because when `key`
is 'abc', the value of `object.abc` needs to be observed.

Fixes #29