Fix twoside color shader emission
The code was tracking the pairing of front and back colour emission on a per output base, but it has to be done on a per SID base, so do this, and also force the emission of a front colour declaration if the VS emits a back colour and the "twoside" shader key is not set.
Fixes #123 (closed)