ir: More builders
semantic: Add function to get the module which a scope is in
semantic: Don't clobber already mangled functions
semantic: Fix mangled name for functions
llvm: Handle empty slices