Preserve `doc_attrs` so that custom param attributes are available at runtime

The `doc_attrs` variable, which contains the `:desc` attribute (as well as any other custom attributes), is not passed to the validator and therefore not available at runtime.  This PR passes `doc_attrs` as another argument to the validator's constructor, thereby preserving them for later access.