Allow properties with more than two levels

Without this fix, I was unable to validate properties more than two levels away, e.g. `attributeA.attributeB.attributeC`.