parsing_cocci: visitor_ast: Add attributefn to SmPL AST visitor
Add a public function to visit attributes in the SmPL AST visitor.
For unify_ast.ml, also add a few fixes w/r/t the usage of for_all2 for comparing attributes.
Signed-off-by: Jaskaran Singh jaskaran.singh@collabora.com