Fix bug 122 - SDL_RWops bug fixes: set RWops.type field, add input validation, add test coverage