Extended method doesReturn with SP_ARRAY_SET.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>