BUG-FIX: Signal.apply_function was raising an exception when the functio...

...n was written in Cython. Fixes #222