Fix bug where grids are not recognized as start/end points

This issue is caused by the different suffix added to the texture of the same
grid type.
Fix bug where incorrect intersection type gets exported

This issue is caused by the texture name being directly used when exporting
the XML file.