Fixed #4728 (simplify known variables better (%var% & %num%, bitwise and))