node: always set function name

For easier debugging it's helpful to always have the function name.
These were not set for methods coming from cc.