Add 16 and 32 bit int support for flash memory streams

Signed-off-by: bergerkiller <bergerkiller@gmail.com>