fix for #296
- supports now also global variables, variables in namespaces and member variables
- check for 'const' declaration
Merge pull request #332 from guwirth/bugfix/296_const_declaration

Bugfix/296 const declaration