Previously we were mistakenly giving default Integer type to the Null value or to the column with no type. This commit fixes such behavior