Sidebar draws gates with correct number of inputs/outputs
Fix bug where an event which caused multiple wires to the same component calculating partial values