Make prune_expand work with log distributions.
Updated Cython generated c file.