Jaguar: turn optdone into a list of indices