Moved toListM to kask-base.