fix(PgArray): Correct handling of escape sequences in arrays' items (refs #4965)

- Detect invalid NUL char
- Space chars and escape sequence (based on ReadArrayStr() from Pg's
  `src/backend/utils/adt/arrayfuncs.c`)
fix(Layout): Prevent Layout from replacing [\"] (backslash dquot) sequences (refs #4971)

Layout was replacing occurrences of the string [\"] (backslash dquot)
with ["] (dquot), thus corrupting some texts on edition.
feat(DetailSearch): Add constraint on conditions with regexp operator (refs #4957)

Also:
- Adapted DetailSearch's layout/code to allow constraints to be
  displayed in conditions
feat(Report): Prevent SearchDoc's exception from blocking document's view (refs #4960)

An error in the query will be reported as a addWarningMsg instead of
blocking the full document's view.
feat(DetailSearch): Add constraint for unbalanced parenthesis (refs #4959)
feat(DetailSearch): Add constraint for malformed timestamp or date (refs #4958)
test(DSearch): Add test for new DSearch's constraints (refs #4957)(refs #4960)(refs #4959)(refs #4958)
fix(DetailSearch): Correct !~* operator missing parenthesis (refs #4975)
Merge pull request #1269 from eguaj/3.3-A4957

(closes #4957)(closes #4958)(closes #4959)(closes #4960)(closes #4965)(closes #4971)(closes #4975)