Merge pull request #805 from kmaglione/moar-leaderboard-fixes

Copy leaderboard test fix from AMO to Marketplace.
Fix fencepost error in leaderboard code.
Merge pull request #806 from kmaglione/leaderboard-fencepost

Fix fencepost error in leaderboard code.
Fix leaderboard display bug.