fix pad_signal bug for non-square sizes with zero padding. see #47