Merge branch 'hotfix/3785'

Close #3785
Fixes #3737
Merge branch 'hotfix/3785' into develop

Forward port #3785
[#3817] Fix tests and conditional code

- Test cases that were added failed as they omitted mandatory literal
  parameters; added them to better illustrate the expected usage.
- Added explicit regex and conditional for optional long flags when
  parsing, resolving issues.
Merge branch 'hotfix/3817'

Close #3817
Merge branch 'hotfix/3817' into develop

Forward port #3817
Test fixes for CAPTCHA component

- ZendTest\Captcha\ImageTest::testCaptchaImageCleanupOnlyCaptchaFilesIdentifiedByTheirSuffix
  often fails when running under parallized builds as the test directory
  gets cleaned before we're done. Added a constant to skip the test by
  default.
Merge branch 'hotfix/captcha-failures'

Fixes test failures due to timing issues in captcha GC
Merge branch 'hotfix/captcha-failures' into develop

Fixes test issues due to timing issues in captcha GC
PSR-2 : add space between for, if, do(..) while, while and open parentheses
Form can validate non consecutive keys of collection in data
Fixed PHPDoc block
usage of associative array, Fix CS & add tests
Zend\Db\Sql\Predicate\Predicate
Fixes #3832 - ensures literal() is backwards compatible when non-null testing values are passed as 2nd parameter
Merge branch 'hotfix/3836'

Close #3836
Fixes #3832
Merge branch 'hotfix/3836' into develop

Forward port #3836
Fix for legacy Transfer usage of File Validators
Resolved #3831 made Stdlib\ArrayObject more compatible with PHP ArrayObject
Resolved compatibility library for container
Merge branch 'fix/transfer-2.1' of git://github.com/cgmartin/zf2 into hotfix/3837
Merge branch 'hotfix/3837'

Close #3837
Fixes #3771