HPCC-8807 Implement typedefs for dictionary and datasets

Also allow RECORDOF() to work on more argument types.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>