Fix ImportImpl's equals method

* It follows the best practices for an equals method as defined in Effective Java
* It addresses the concerns about comparing with other implementations of the Import interface