Added generation to shared_node output
Cleaned up seq_node deriv handling with empty predecessor