Added TransparentLatch
Optimised gate rendering a bit.