Attempt to fix the ArgumentException editing transactions. Needs testings. GetHashCode removed.

Removed some Resharper warnings.