Reorder kernel template parameters to match std::map convention