[cpp] Add implements dynamic, optimize string calls, add Array.Any type for scripting