Fixed bug that caused runtime error in module_rank.rb
Very minor code formatting
Land #2877, module_rank.rb TypeError fix
Land #2879, minor code formatting missed in #2863