SLING-4035 - Changing the jcr primary type does not work if properties
are added

Change the jcr primary type earlier in the AddOrUpdateNodeCommand .

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1631261 13f79535-47bb-0310-9956-ffa450edef68
SLING-4036 - Changing the jcr primary type does not work if mandatory
properties are added

Added an ignored test

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1631262 13f79535-47bb-0310-9956-ffa450edef68