Added support to smallserial datatype. (issue #235)