add retrieval of field type for each node (TEXT, ATTRIBUTE, etc).this is to support a fix for bug#2999
add retrieval of field type for each node (TEXT, ATTRIBUTE, etc).
this is to support a fix for bug#2999