limit search ranges in cdfchn.f
add tests for infinite inputs
deal with nan inputs in cdfchn
Merge pull request #3153 from richardtsai/issue_3102

BUG: special.chndtr infinite loop (#3102)