$mLastShown, $mFirstShown and $mPastTheEndIndex should be arrays since T244492, but classes that override doQuery do not all honour this.
We should fix the individual cases, but can avoid errors in the meantime by casting to array as each property is passed to implode.