Merge pull request #592 from jogibear9988/master

Bugfixes in WPF Designer
Fix #597: StackOverflowException possible
Update to AvalonEdit commit a4f053c2d.
Merge pull request #593 from jogibear9988/master

Support for {x:Refrence}, Template & Namescope fixes