fix for setNull, setString, setObject may fail if a specified type cannot be transfered in a binary mode #151