This had been done before for types.go, but namedresources.go still had one small diff. While at it, fix some typos.