ARRAY_SIZE macro must handle expressions

X may be an expression. It must be evaluated before dereferencing.
Don't cast ARRAY_SIZE result to int.

Casting a size_t to an int is, uhm, yeah...
We have an ARRAY_SIZE macro, use it.
Squelch signed/unsigned comparison warning.
[pvr] fix wrong usage of SortsOnTop() which does not set the special
sorting
Merge pull request #5172 from xhaggi/pvr-fix-special-sorting

[pvr] fix wrong usage of SortsOnTop() which does not set the special sorting
fix CPlayerSelectionRule::CompileRegExp() after 8feb4defe8bbefb7393b925e3f2d6c0c40eef78f
[omx] Fix segfault when reencoding noisy jpegs

See: http://forum.stmlabs.com/showthread.php?tid=15235&pid=107589#pid107589
The fanart has a dotty noise effect that results in very large output jpeg size.
A bug in the code is triggered where we overwrite the encoded jpeg output buffer
Merge pull request #5168 from uNiversaI/icons2

[confluence] r.i.p. XBMC and move on.
SortUtils: fix bad format (thanks notspiff)
platinum: improve logging on bad HTTP requests
platinum: add patch for bf8934a1f074c14b21359978821957520ed66eb4
Merge pull request #5147 from Karlson2k/fix_scraper_fixchar_01

ScraperParser::Clean: use "UTF-8" instead of GetSearchStringEncoding()
Merge pull request #5177 from popcornmix/jpegseg

[omx] Fix segfault when reencoding noisy jpegs
Merge pull request #5146 from t-nelson/array_size

ARRAY_SIZE fixes and mass deployment
[confluence] replace xbmc icons
[confluence] replace xbmc logo
[confluence] replace xbmc strings
[confluence] remove xbmc prefix on built-ins (not needed anyway)
[confluence] bump version