Bug #1496: extend auto-invented format to support ranges longer than one decade.