I'm not sure what would cause the sizeof() error in the rsobj.php file. I've looked through the code and I really can't imagine why that variable would be set wrong... It must have something to do with the context. That code is only used in Multiple Insert or Multiple Update Server Behaviors. If you could reproduce it and sent the page that was causing it, then I might be able to tell... Are there any errors before it that might be related. Sometimes one error leads to another.
The foreach() error looks like it would be caused by a bad argument sent to the file upload function. Again, I'd probably have to see the page that caused it to debug it. Most likely code was out of order and you have since corrected it if it doesn't happen every time you do a file upload from the page that caused it.