Various data type related tests and fixes