Use propper class inside resolve_node.
Use a whole token for scope prefix.
Clean up the header/ident related items in the scanner.
Add tokenize() to test the scanner. Also a script to play with it.