Add types to stack_node