Allow slists to be passed to mergedata(). Fixed from Ted.

Close #3279