support optdepends as alpm_depend_t

Fixes FS#35035.