8191842: JShell: Inferred type information is lost when assigning types to a \"var\"

For vars, upgrading all anonymous classes to member classes; stripping intersection types from fields before writing.

Reviewed-by: rfield
12 files changed