fix node attribute inspect vs to_s problem

this fixes #1562