Add built-in functions for shaders, fix ir_expression segfault. Add some enums.