Refactoring using MemRef.
ncd: Fix bugs with bad expectations of null-terminated strings.
Refactoring using MemRef.
ncd: Fix possible crash in @decode_value.
ncd: NCDVal: Add warnings about string pointers.