Warn about casts to and from cps function pointers

The code is probably not bullet-proof, but it works on
simple examples.