Ensuring msgs and args are wrapped in arrays prior to encoding