Fix distribution comparison

When comparing Delta functions, scipy.stats.ttest_rel() might return
infinity as t-statistic.  When this happens, comparison fails.

Fix this behaviour by using numpy sign() function.  Scipy.stats still
issues a RuntimeWarning, but apparently it does not affect t-testing
anymore.