REF: implement ParseState
In the near future, the state being tracked in array_to_datetime and array_strptime will include a resolution (xref #55564).  This implements a ParseState object to de-duplicate tracking, validation, and updating.
Thanks @jbrockmendel 