Fast cwrap

Optimize ccall and cwrap