Fixed incorrect/inconsistent phpdoc.
Added developer hint if they don't realise that call parameters are maps not lists
Fix phpdoc error, extra parameter that does not exist
Put more meaningful API error message into the PHP thrown errors
Fix broken chunked upload handling, and add proper Exception support for it
Fix sloppy implicit type conversions, declare code more carefully