Fixed several issues noticed during gerber rendering.