Improved C++ symbol indexing support.

It's still not perfect, but it handles most code quite well.
Merge pull request #421 from cessen/master

Improved C++ symbol indexing support.