More fixes inspired by bug #48872 - handle zero formatting rules, and better color detection in DataFormatter