Simplify subobject access + add some tests

Change-Id: If7f55305b3fa6fdf7523c2141cecf5e84f1f1342
Merge "Simplify subobject access + add some tests"