refactor to enum/constants for node types

Replace string references to centralised VirtualNodeType
class references