Nested error messages for arrays and records