Fix Issue 13023 - optimizer produces wrong code for comparision and division of ulon
Merge pull request #3809 from yebblies/issue13023

Issue 13023 - optimizer produces wrong code for comparision and division of ulong