Fixed encoding of empty array as array instead of map and integer
Fixed decoding or arrays, maps, strings and integers