Type safe jtwig functions

As part of #88 this tech task will allow to create jtwig functions using type safe Java methods.