GH-2 Used recursive calls to compare containers

and added checks to compare ComponentInstances