Wiaan Mulder produced a historic all-round performance with a century and seven wickets to propel South Africa to an innings victory over Bangladesh in Centurion and seal a 2-0 series sweep.