fix parsing of array param in function (was falling in endless loop)
fix use var_export for default params in function (nulls and empty arrays broke templates)
add tests for custom functions in template
proper fix for array params (now works with both positional and named params), tests
Merge pull request #15 from klkvsk/fix-functions-args

Fix for default arguments in custom template functions + tests