can't you use sizeOf(nodeTypes) for the second argument and then change the second line to
`const NODE_TYPE nodeTypes[] = {NODE_TYPE_AGENT, NODE_TYPE_ANIMATION_SERVER};`