Fix gammap()

Also add minimal tests to check both logic branches in gammap().

Fixes: https://github.com/jstat/jstat/issues/117
Signed-off-by: Trevor Norris <trev.norris@gmail.com>