Adds an observer using "tracking with" syntax.
Example:
tracking with { old, new -> log("$old -> $new") }