Fixed generics compiler issue in AbstractFunctionTemplate