Fix comparison to properly migrate static ranges

fixes issue #210. note: didn't really need to rename `type` to `range_type`