Fix bugs in the formulation for the language model ranker (issue #50).

With this change, the unit test for absolute discounting in ranker_test is
now passing, so it has been added back to the test suite.