change switch to ifelses in matcher
add helpers for $ctx and stop writing tmp files
simplify mods creation to simplify templates
code cleanup, merged 2 isArray functions into isList
important part of the matcher
rollback matcher to switches
Merge branch 'feature/optimizations'