Fix missing scope attr in equals and toString
import tool: allow inline field declarations

Extend the json import format to allow declaring field types embedded in record types. Thus, it is no longer to require to declare field types up front in the fieldTypes section.

An inline field type declaration is recognized by the prescence of the valueType attribute. Record type import now happens in two passes: first inline field type declarations are extracted (and checked for conflicts between record types) and imported, and then the record types themselves are imported.