Wire Adv: Attempt to fix rare error when an Ent has no inputs
Fixes #511 probably maybe
Fixed lamp not being updated properly
Fixes #513
Fixed error when trying to un-wire non-existing input
Gates should now update properly. Strangely the iterator was being created but not passed in the function, so it wasnt fullfilling its purpose.
Merge pull request #515 from Ronny95/gateupdatefix

Gate output trigger fix