added support for smallint

added support for smallint when it is not used as bool