Added check to make sure that the type of the item in the array… (#809)
Added check to make sure that the type of the item in the array… (#809)

This fixes the memory leak discussed in #800 and #808.
rmagick/rmagick,rmagick/rmagick,rmagick/rmagick