Make Map ruby 1.9 -w clean.

* remove unused variable
* fix shadowed variables
* remove dead code
* remove parameter ambiquity
Merge pull request #19 from copiousfreetime/bufix/ruby19-warnings

Make Map ruby 1.9 -w clean.