Add some debugging and more exceptions throws to XML mesh loading.