error for using Ptr in ccall, and doc update. fixes #3154