SI-7571 Relax restrictions on nesting in value classes

To allow synthetic classes, notably those representing
partial function literals.