better integer ranges, also added range on CHARACTER