Use same error handling while unmarshalling args for CMD and ENTRYPOINT
Merge pull request #3367 from cpuguy83/3362-unify_cmd_entrypoint_handling

Use same error handling while unmarshalling args for CMD and ENTRYPOINT