#109 added handling of return types: byte[] and short[]