toString-methods for easier debugging and new constructor for ResourceNode

Hello Thomas, please check if these toString methods I added during my GDMEncoder experiments are fine for you and whether the new constructor may stay.