Parse object hierarchy in constraints more flexibly.