Allow the `type` argument to be passed through `get_the_pagination()` as long as its value isn't `array`.

For trunk.

See #29808


git-svn-id: https://develop.svn.wordpress.org/trunk@30820 602fd350-edb4-49c9-b593-d223f7449a82