Implement log10 variants allowing to 1) ignore input zeros (producing NULL outputs for those) or 2) translate all inputs by +1 in case any zeros are found

We already had a variant that changed zeros into ones before attempting to perform the log10 transformation. It only modified zeros, keeping the other values unchanged.
The new variant, when any zeros are found in the input, increments all input values by one, instead of just the zeros. If no zeros are found in the input, the input values are not translated.