Fix comparison to arbitrary objects