Added proper hashCode and equals methods in Expression implementations.