BUG: handle array_like input in stats.circ* functions.  Closes gh-2062.

Also add test for empty input, return nans.

(cherry-picked from 04403f98)
BLD: special: fix build when system doesn't have isfinite macro

(cherry picked from commit 091e6fc93d90a9c63ecdbab2bbbee1673902eb1f)