Add type_compat script - backwards compat fixes type errors

Backwards compatible version of https://github.com/Eonblast/Emysql/pull/148