Dynamically compiled assemblies should not be serialized.

The assembly in ScriptResourceBase was not marked as NonSerializable.