ncd: basic_functions: Fix bug, make code shorter.
ncd: basic_functions: Cosmetic changes.
ncd: basic_functions: Implement encode_value and decode_value.
ncd: basic_functions: Fix for ComposedString inputs.
Build with -Wshadow.
Fix some variable shadowing (no bugs).
ncd: tests: Add tests for encode_value and decode_value.