Complete conversion of pattern-parse trees into ast_pat type.