Make DeclarationInTextSource implement hashCode/equals