implementation of replaceComponentWithValueModification(T, T,
Serializable) :
-do the replaceComponent(T,T), rebuildAll(T), then do the
setValue(Serializable) on the result, rebuildAll(T)
-add 2 test cases

add some assert into replaceComponent(T,T)