[surface model] avoid multiplication which can fail for overflow in CMS
This MR fixes an issue for the flip_bool
flag in the common surface deduplication. Due to an integer overflow, the flip_bool was incorrectly set to true for CMS. This fixes incorrect propagation.
This also includes some cleaning from leftover printouts for debugging.
Edited by Severin Diederichs