More API related IMC work (encoding/decoding from NBTTagCompound)