Fix JS types in callback signatures

Fixes crashes in the testsuite and in gnome-shell on at least PPC, due
to treating things like pointers which really aren't.

Signed-off-by: Michel Dänzer <michel@daenzer.net>