Handle localized attributes properly in clone.

[ fix #2772 ]