Fixed BMPToTMX not handling aliases correctly.

Also added more checks for missing tiles.