c.by: Fix parsing of dereferences

(opt-brackets-after-symbol): New.
(multi-stage-dereference): Use it.  Add rules for explicit matching
the last dereference.  We cannot just juse 'namespace-symbol' as a
single rule, since this would match too greedy and mess with parsing
default values of variables.
(cit-remove-and-do-shared-lib): Remember buffer to switch to.
Add test for parsing local variables

* tests/cedet/semantic/tests/testlocalvars.cpp: New file.
* tests/cedet/semantic/tests/Project.ede: Add above.
* tests/cedet/semantic/tests/Makefile: Regenerate.
* tests/cedet/semantic/ia-utest.el (semantic-ia-utest-file-list): Add
  new test file.
Fix typo in last commit.
Merge branch 'master' into devel