whereDeclared() and vardecls work

Can now check whether a variable has been declared and add proper nodes
to the tree.

{
{int a}
{int a}
int a
}
$