Add numpy array interface support for 16 and 32 bit integer modes