Fix `change` matcher to work properly with `IO` objects.