Add support for ranged sets with statements.

Not really recommended, but for compatibility.