1. Bugfixes to DependencyProperties generator