Ran integration tests, debugged.

budregex DOTALL mode, __cop_leaf_map dir stem handling, formgraftname
fix
More integration testing, small tweaks to regex