Override the Module equals() method to check for state not just identity