Fix domain errors

* Removes erroneous domain check from atan2 (infinite values are okay!)
* Adds domain check to the base for log_common19 (ruby-bug 9797)