subList toIndex should be exclusive, not inclusive. (fromIndex is inclusive.)

Resolves #1274.