HPCC-8335 Fix more issues with DEFAULT on field

Includes:
- Fix problems with checking the range of default values
- Use createExprAttr(defaultAtom) to avoid inconsistencies
- Preserve default when creating a simplified record
- key file for the default example

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>