ncd: Implement functions: string concat, list concat, integer comparison functions.
Also fix missing type checks.