Fix specifying figs by name

Strings no longer respond to the each method in ruby 2.0.
Credit to Jongjeong Kim
http://rubyforge.org/pipermail/tioga-users/2012-April/000303.html