Binned signal

This fixes the inconsistencies arising from treating the signal as binned or unbinned in different parts of the code. In particular, it affects the outcome of all functions that perform an integration in the signal dimension and curve fitting.