SI-7571 Allow partial function literals in value classes

5d9cde105e added deep prohibition of nested classes within
a value class. This has the undesirable side effect of
prohibiting partial functions literals in method bodies
of a value class.

This commit slightly relaxes the restriction, based on the
SYNTHETIC flags of the class symbol. The test shows that
the translation generates working code.

Review by @gkossakowski