add special handling for NodeNameInterface

alternative approach to https://github.com/jackalope/jackalope-doctrine-dbal/pull/138