add support for path in errors for arrays of objects