Document calling conventions for ccall

closes #2859