Validate value of GPG :key_id

The value of `:key_id` must be an hexadecimal string of length 8, 16,
or 40.
Update GPG tests to use valid key IDs
Test for invalid GPG key IDs
Merge pull request #6360 from ndr-qef/dsl/validate-gpg-key

DSL: validate value of GPG key ID