Changed function pointer to generic functor in tapas::Map