updates prepend to deal with none array input, adds tests