TPS-748 [5.4.1]bug in condition for tMDMinput(TMDM-7695)

TMDM-7482: "view contains complex type fields throw error in webUI"

(cherry picked from commit 49370e8)
(cherry picked from commit 9b636ffca35acb7cb62d58f81235fc75a9191f8d)

Conflicts:
	org.talend.mdm.core/src/com/amalto/core/storage/hibernate/ScatteredMappingCreator.java
	org.talend.mdm.core/test/com/amalto/core/query/InheritanceTest.java
	org.talend.mdm.core/test/com/amalto/core/query/SystemStorageTest.java
TPS-776 [5.4.1]Sync plan doesn't work between 2 servers(TMDM-7649)

TMDM-7649: Synchronization wasn't working on SQL Storage

(cherry picked from commit 4d45b6ece1eef88fa2d67205a5bdd31d5e0dc8b1)
(cherry picked from commit 7cfbfae90699c3226d21ec938b2e6339aa2c88ea)

Conflicts:
	org.talend.mdm.core/src/com/amalto/core/storage/SystemStorageWrapper.java