Fix bug with full bins in Fourier transforms

I also added a test to make sure the time mesh is twice as
long as the frequency mesh. Obviously now some tests don't
pass... I will fix them in the next commit.
Fix wrong minus sign in FT definition

This is a copy of commit 3fcf727 that has been done on the master branch.