BUG: fix PeriodConverter issue when given a list of integers (GH9012)

For example coming up when [0, 1] is passed by axhline

Restore old behaviour, but special case arrays of Periods to keep the
performance gain of using PeriodIndex instead of get_datevalue for that case.