NCDVal: Fix assertion.
If assertions were enabled this bug would lead to a crash when using a variable key in a
literal map expression, like this:

var("Foo") key;
var([key:"Value"]) map;