combine P->flags and exec, always use yydebug, check AST_DEBUG early

P->flags (and yydebug ie G->debug) is now a combination of
exec_mode_t, syntax modes (18-63) and the debug flags.
AST_DEBUG has the AST embedded (multi-line ops), so unpack the tree
beforehand.