Fix for issue #4103

Fix for https://github.com/zendframework/zf2/issues/4103
fix copy/paste low skill :]
unit test for fix#4103

Test if the last char of the markup is '>' of '</select'>', and not the delimiter ':' that has to be removed if seconds are not shown.
fixed substr
Merge pull request #4133 from mpalourdio/Fix#4103

Fix#4103
[#4133] fix test failure

- Default locale included ante/post meridiem marker, which select
  element was not taking into account, nor were tests, which left a
  dangling " a" following the markup, and hence a failing test. Updated
  code to strip such a format marker as well as trim the final markup.
[#4133] CS fixes
Merge branch 'hotfix/4133'

Close #4133
Fixes #4103
[#3882] Fix issue with expired WeakRef callbacks

- Added code that validates that we have a callback from the listener
  prior to executing it. If not, we unregister the listener. This
  reinstates the original behavior from the tests (which were failing
  when WeakRef was present).
Fix for console router not accepting controller word as part of a route
Merge pull request #4182 from robertboloc/#3358

Issue #3358 - Fix for console router not accepting controller word as part of a route
Merge branch 'hotfix/4182'

Close #4182
Merge branch 'hotfix/3882' of git://github.com/weierophinney/zf2 into hotfix/3882

Close #3882
Close #4173