Add lang/internal/mangling. Closes #683