Removes custom `eq` template function

Simple and to the point. See #480 for background.