Add missing intrinsics, fix a couple of typos in intrinsic names,
and remove duplicate declarations.