Do not override attributes on `dup` by default scopes

This is to backport #9197.