Make JEventDispatcher compatible with HHVM

According to HHVM inconsistencies guildline, "Under Zend PHP, foreach by value will modify the array's internal cursor under certain circumstances. Under HipHop VM, foreach by value will never modify the array's internal cursor.

Moving end() from above key() function to below it also make the code easier to understand as the behavior of foreach with array cursor is complicated to understand.
[#30197] class hide-phone for active numeric pagination items
Updating isis
Use jQuery for create captcha into plugin
[Remove Mootools] Behavior Keepalive without any library dependency.
[Update Test] - [Remove Mootools] Behavior Keepalive without any library dependency
Correcting update sql names
[fix] [33555] *Notice when ordering and using batch in some tables in back-end managers
Close #3405
Merge remote-tracking branch 'joomla/staging' into 3.3-dev
Merge pull request #3233 from Hackwar/patch-11

[#30197] class hide-phone for active numeric pagination items
Merge pull request #3299 from xillibit/patch-7

Use jQuery for create captcha into plugin
Merge pull request #3376 from hieblmedia/remove-mootools-keepalive

[Remove Mootools] Behavior Keepalive without any library dependency.
[#33333] Unnecessary Queries from JTableNested class (Fix #2789)
Merge pull request #3199 from chalet16/patch-1

Make JEventDispatcher compatible with HHVM
Merge remote-tracking branch 'joomla/staging' into 3.3-dev