Fixed lamda template instantiation for inferType.