fix advancing range var during delete
add location class and mov constructor for const_range