Added parsing for #subobject within templates

Change-Id: Ic35e87e0bc83b7566daa3082105bcec75da2bc88