Added support for item ref as a $dataname property and some code to name a field type for debugging.