Changed the searching for declarations to only return relevant ones and to work for variables.
Changed the searching for declarations to only return relevant ones and to work for variables.

Signed-off-by: Dimitar Dobrev <ca751a5c976abad79158718440750fc638d19ebc@protonmail.com>

zillemarco/CppSharp,inordertotest/CppSharp,mono/CppSharp,mono/CppSharp,u255436/CppSharp,inordertotest/CppSharp,ktopouzi/CppSharp,ktopouzi/CppSharp,mono/CppSharp,zillemarco/CppSharp,ddobrev/CppSharp,ktopouzi/CppSharp,inordertotest/CppSharp,genuinelucifer/CppSharp,inordertotest/CppSharp,u255436/CppSharp,u255436/CppSharp,mono/CppSharp,mohtamohit/CppSharp,ktopouzi/CppSharp,mono/CppSharp,zillemarco/CppSharp,mohtamohit/CppSharp,ktopouzi/CppSharp,mono/CppSharp,ddobrev/CppSharp,genuinelucifer/CppSharp,u255436/CppSharp,inordertotest/CppSharp,mohtamohit/CppSharp,u255436/CppSharp,ddobrev/CppSharp,genuinelucifer/CppSharp,ddobrev/CppSharp,zillemarco/CppSharp,mohtamohit/CppSharp,genuinelucifer/CppSharp,genuinelucifer/CppSharp,zillemarco/CppSharp,mohtamohit/CppSharp,ddobrev/CppSharp