Use chunk_is_str instead of strcmp
Add struct with functions test
Add struct/union/enum scope information and use a switch instead of chain of if/elseif