Added assertions to make sure valid ranges are passed into functions that create and update range tree nodes