Added NBT read/write functions to tanks.

These function are "safe" in that they will discard invalid liquids when loading the tank.