all: vet, fix unreachable errors

Fix a bunch of simple vet errors obscuring some more important ones.