Added save/load methods for TileData; fixed bug in save/error methods