check integer literal in vistor

This pr targets (SCL-874)[https://youtrack.jetbrains.com/issue/SCL-7874].
It also checks the octal number in different Scala versions.
The test cases don't cover octal number check which is simple and direct logic.