Add fetching of pointer to compiled function
Refactor structure of returns from JIT functions
Tweak types in JIT functions