Return -infinity for %log2 and %log10 of +0.
Use log2 and log10 functions when possible instead of using the
general case.
 * Add tests for dd-%log2 and dd-%log10.
 * Fix the log10.result-types test because we return correctly rounded
   results for these few tests.