Update split_array.rb

Added target field support