Workaround persistent problems with isinf & isnan on OSX
Merge pull request #515 from jaredhoberock/complex-issue

Workaround persistent problems with isinf & isnan on OSX