add GranularDiff{,Strings} functions
added test for GranularStrings

This also tests GranularDiffs itself.
Also added a helper function to compare two diff slices.