Fix decode and decodeMany types