core.c: Return parent's node type