adding failing ibeta test with nan input
updated ibeta test
changing tests for ibeta; checks that it throws
adding tests for ibeta
adding error checking to ibeta; added additional documentation to C++ function
Merge pull request #871 from stan-dev/feature/issue-854-ibeta-nan

Fixes #854. Feature/issue 854 ibeta nan