Exposed the $item variable within a foreach binding. $item refers to the raw, potentially wrapped value, where $data does not.
Added an extra condition to make sure that observables are compared correctly within an array. `typeof observable == "function"` returns true for observables, so they are treated like a predicate instead of value. With this check, the observables are compared like values.