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