[JENKINS-17680] Make minimized diffs.
[JENKINS-17680] use @Initializer instead of ItemListener.
[JENKINS-17680] Upgrade is applied also to MatrixProject.
[JENKINS-17680] Added a test for verifying upgrading on building works.