Fix cmd and entrypoint handling in parser

This utilizes a test provided by @cnf which exposed an issue with the parser injecting `""` for empty json values, which was then interpreted as a value itself by the evaluator. Removing this exposed a ton of fiddly order-dependent bits around entrypoint and cmd, which then needed to be fixed as well.

Hopefully we can address this with versioning and clarifying semantics.
done, PTAL
On Sep 3, 2014, at 6:15 AM, Alexandr Morozov <notifications@github.com> wrote:

> In integration-cli/docker_cli_build_test.go:
> 
> > @@ -766,6 +766,25 @@ func TestBuildEntrypoint(t *testing.T) {
> >  	if res != expected {
> >  		t.Fatalf("Entrypoint %s, expected %s", res, expected)
> >  	}
> > +
> > +	deleteImages(name)
> > +	expected = "[]"
> I prefer this as separate test as edge case.
> 
> —
> Reply to this email directly or view it on GitHub.
>