Expands shaders.loadShader to accept a config function parameter.
Adds error assertion to the icons API.