More exciting last pass.

All interesting code paths seem to be covered now.

Fixed a bug: bits were backwards in blend
transparent test case