vm: fix `produceCachedData`
Fix segmentation faults when compiling the same code with
produceCachedData
option. V8 ignores the option when the code is in its
compilation cache and does not return cached data. Added
cachedDataProduced
property to v8.Script
to denote whether the cached
data is produced successfully.