Check that types passed to PHYSFS_write are POD

More is needed to trap some misuses, but those traps flag existing code.