Correctly skip constructors in search data.

The existing code for skipping constructors had become outdated.
Skip hidden members in search data.