Moved type_of(..) to misc mod
fn compile_shader: ty -> shader_type