Prototype canonical implementation of Equals for classes and structs.