Wpf designer paste fixes

A couple of fixes when pasting XAML. See commit comments for details.