Modify 1.8.x compatibility fix to preserve original return type

On 1.8.x, Object#instance_variables returns an array of strings,
whereas it is an array of symbols on later versions. This minor
change preserves that it is strings on 1.8.x