...Also fix some incorrect calls to semantic.DeepEqual, and a bug where it returned true incorrectly.