Added debug-mode only assert macros, and special range-check assert macros
Added GL state update wrapper class