adds {lit:Class::staticMethod}, register function to compile by Closure