Adding tests for average of long and float fields. Use core's average_X
metods directly.
Removing not relevant code.
Making it easier to change the number of objects in RealmResultsTest.
Merge pull request #518 from realm/kg-average

Reimplementing average