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 backslash dquot) sequences (refs #4971)

Layout was replacing occurrences of the string [\\"] (backslash backslash
dquot) with [\"] (backslash 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)