(#13397) fix gem provider ensure=>latest bug
As of 2.7.12, if you had "ensure=>latest" for any gem package
resource, puppet would not correctly detect that the gem
was already installed and would attempt to install it on
every run. (This was because the "latest" method on the
gem provider was always returning an array, when it should
always be returning a single value.)