fft: added a type check in the constructor

Better to get a clear error right away, than a giant stack trace during compilation.