Raw.xs: Introduce git_ensure_pv
Cred.xs: Perform stricter type validation