Fixed custom sets to compare equal and hash code functions.