also advance to end of array for object-based observers

This is a backport to the 2.5 branch, see the following:

https://github.com/joomla/joomla-cms/commit/791f5612ac7305f94789411f4c3fc459c91077a5
The property "catslug" missing on view category.
Backport #3515 to 2.5

Tracker: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=32943
 JUserHelper getProfile method should be static  

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33717&start=0
Merge pull request #3505 from danslo/patch-1

also advance to end of array for object-based observers
Merge pull request #3514 from ITPrism/missed-catslug-property

The property "catslug" missing on view category.
Merge pull request #3577 from vdespa/patch-10

[#33717] JUserHelper getProfile method should be static
[#31637] Contact form can be used to spam (Fix #2065)
Use mysqli_set_charset() instead of SET NAMES
Merge pull request #3516 from zero-24/patch-19

[#32943] [2.5] Remove behavior.formvalidation in contact view
[fix][#29562] Banner details shows trashed client. Fixes #1010

Only active clients should be visible here and not the one which are in the trash See http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=29562
Sync .gitignore files to staging
Prepare 2.5.21 release
Prepare 2.5.22 development
[imp] Fix Credits for 2.5 & How to install link.
Closes #3627
[fix][#29956] com_finder predefined date filters are not working. Fixes #745
[bug] [33848] Fix fatal error when sending contact form.
Closes #3763
Prepare 2.5.22 release
Prepare 2.5.23 development
Merge pull request #3731 from Bakual/2.5-SetConnection

Use set_charset instead of query to set the db connection charset

User confirms patch is fine. Merging.