Add repeats16 and repeats32 external modes (from the obsolete contest branch).