Fix issue with dynamic deps

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

Fixes #29