fix recursive prefix in __flatten_patterns_tree
add test for __flatten_patterns_tree__
generalize fix for __flatten_pattern_tree__
Merge remote-tracking branch 'postfalk/master' into v0.1.7