Fix support for CompareOptions in Diff.Compare<T>

Fixes #827