GS-11759
Modified count to return long instead of int.
modified sum/average to return generic number instead of fixed one.
added test for empty results.

git-svn-id: svn://pc-lab14/SVN/xap/trunk/openspaces@185786 eb64e737-3616-4df0-8941-5ee2ae88103d