More work on walking the ast scope and getting variable info.