Parses the string in the 'range' arg into start and end sequence numbers and returns them in that order.
Returns undef if the string is malformed.
Takes a delimiter string and parses into a sequence number. If it is not either an integer number or of the form LATEST~#, returns undef (invalid delimiter).