Make tok_last_type return an enum token_type instead of int