Changed getRootProperty to deal with change to structure change with array lookups on an object property