Fixed a bunch of bugs with adding and manipulating tile sets.