Previously JS entities would create prototypes on each allocation in
`Sc*::New`. This change creates a single global protype for each entity
class which then gets copied upon entity allocation in JS realm.
Running test with "Live Ride Measurements" plugin on a park shared for
performance testing I get following results:
| | OpenRCT2::Scripting::HookEngine::Call | OpenRCT2::Scripting::ScMap::getAllEntities |
|-----------------|---------------------------------------|--------------------------------------------|
| duktape | 68ms | 10ms |
| quickjs current | 318ms | 126ms |
| quickjs + fix | 22ms | 942µs |
Previously each call to `getAllEntities` would result in 1382 calls to
`JS_SetPropertyFunctionList`, each costing 90.5µs.
Park used: https://files.catbox.moe/z6j2g4.park