add proper errors for invalid ccall struct types