Cleaned up C API for productExpSumLog() and added more package tests for it