Fix #158: GD alpha detection + Color::isOpaque are broken
Fix unit tests