corrected bug discovered in Adopted.hashCode and Adopted.equals