remove dependnecy on dart:mirrors from kernel api by introducting interface for function/method invocation