(#22363) Add test for Integer type to string

Tests missing for Integer to string when there is a range
that is not +-Infinity.
(#22363) Add Integer range inference test
(#22363) Add test of instance? for integer range
(maint) Remove dead code/comment
(#22363) Fix problems in TypeParser

The TypeParser misinterpreted several types as being ResourceType
if an attempt was made to parameterize a non parameterized type.

The type Object is now also supported.

When the TypeParser was used to only interpret it failed when
there was an error - this because the type parser was not used
to parse the original string. All ast objects have a Locator when
they come from the future parser and it holds the parsed string.
Now, the string is obtained from the locator if not originally
parsed via the type parser. (This should be cleaned up later).
(#22363) Fix problem with reversal of compare <, > of types

The logic was reversed compared to Ruby. Object > Integer should be
true with the rational that the set of all objects > the set of all
integers. The evaluator impl had this wrong.
(#22363) Fix issues with type comparisons

Integer type equality was broken (always true).
Literal type missing in type parser.
Literal type not considered to be Data

Adds test.
(#22363) Add additional Integer range tests