serialize tile dictionary