Cross off a few tslibs-TODOs
This is a hodge-podge addressing a few of the items in #17652.  Individual commits should be item-specific(ish).

- remove unused lib.arrmap
- de-privatize _checknull_with_nat
- fix a couple of C warnings caused by timedelta_struct
- remove Period._comparables

