Add tiles to lua exporter
Fix save errors
Format debug printing