Add functions for testing write support for formats
Fix shorten 64 to 32 warnings
Fix weak vtables warning
Fix more conversion warnings
Don't use struct for no reason
Disable clang switch warnings
Use reference argument instead of pointer