fiz an issue with log_average.

Shows up in affyPLM. this manifests as a breakage on some platforms, and on others it resulted in extremely long runtimes