refactor Timeslice::add_payload(): replace runtime recursion for template recursion