Fixed range operator for conversions from other types.

Also moved the tests to ReferenceTests (and enabled the others that are now passing).