CRM-12133: Changed OptionValue's auto-increment function to use numeric comparison instead of string comparison.