BUG: fix range keyword for stats.binned_statistic.  Closes gh-3063.
TST: clean up stats.binned_statistic test for range kw a bit.
Merge branch 'pr/3064' into master.

See https://github.com/scipy/scipy/pull/3064