common: Improve exec, node_exec, true_preg_match (splitted out).