Enhancements

- better isinstance() check for list object
- better assertion types used
Merge branch 'bugfix_upload_content_length' into enhancement_file_upload