Fixed bug in sized flagvector construction
Fix bug in rule_node derivative