Do not hit-detect the same feature multiple times

In other words forEachFeatureAtPixel should not call the user-provided callback more than once for a given feature.
Merge pull request #2543 from elemoine/foreachfeature

Do not hit-detect the same feature multiple times