OPT - significant optimizations for smart collections processing: avoid using count() within for loops as this is expensive; also in_array is slow, and array_flip then isset() works incredibly faster

git-svn-id: http://svn.montala.net/svn/resourcespace@4722 c08608d7-6e46-0410-86ca-f2a6f1370df5
BUG - fix for filesize2bytes

git-svn-id: http://svn.montala.net/svn/resourcespace@4723 c08608d7-6e46-0410-86ca-f2a6f1370df5
BUG - fix for resource type icons positioning (not hidden under square thumbs) and updated icons

git-svn-id: http://svn.montala.net/svn/resourcespace@4724 c08608d7-6e46-0410-86ca-f2a6f1370df5