Revert "Fixed default value behavior in initProperties." because we need to check oldType != type in case there was an existing object under the same name. If we don't initialize the default value in that case, the new object won't have a value.

This reverts commit b38e0573b8a8cfa23252479d1e176f888d5a22ed.