bug(function_node/generator_node): Fixed problems with active vs value state.