Ensure type_to_signature works for all AST variables