Make basic range creation work, though it is still buggy in some cases.