Improvements to range - compile time assertions (when possible).