Use correct types when building RangeEditor.

Fixes #84.