libgui: Cleanup and asserts
Tests|glsandbox: Render to texture, state stack, texture wrapping