Crash-safe eval replacement

The previous ver. worked fine, but in future could cause the script to
crash on arrays of objects.