Correct hashcode and equals methods of ResourceInfo.