adding support for char and short primitives