add containsKey method to TagCompound