Implemented hashcode for members and type