Fixed issue with variable declaration not actually cjecking if in a declaration.
Started on assignment checks.