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
refactor: rpc:call already optimises calls to local nodes
plus get rid of an unnecessary 'case'.
merge stable into default
remove unused function
simplify
refactor type spec
merge bug25686 into stable
merge stable into default