proj: add head and vdatum option

Followup to #30985
The `if` and `unless` are a bit confusing here; I'd use a block for the `with?` and use an `if`/`else` for datumgrid vs the other resources.