Check DLX permissions on queue declare
Check dlx type while checking permissions
Better error message for DLX type error
Type checks for alternative exchanges in the same way as DLX
remove unused function
simplify
refactor type spec
merge bug25686 into stable