SI-7571 Relax restructions on nesting in value classes

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