Fixed a couple of undefined variable errors.

Also, changed "new Object();" and related syntax to literal object definitions, and similar for arrays.
15 jobs for slyedit_undeclared_vars_2022-06-25 in 10 minutes and 17 seconds (queued for 11 seconds)
Status Job ID Name Coverage
  Build
passed #36729
FreeBSD
jsdoor-freebsd

00:03:50

passed #36730
Linux
jsdoor-linux

00:06:55

passed #36732
FreeBSD
jsdoor-windows

00:01:53

passed #36724
FreeBSD
sbbs-freebsd

00:05:22

passed #36718
Linux
sbbs-linux

00:10:16

passed #36721
Windows
sbbs-windows

00:05:19

passed #36731
FreeBSD
sexpots-freebsd

00:00:11

passed #36719
Linux
sexpots-linux

00:00:26

passed #36722
Windows
sexpots-windows

00:00:28

passed #36723
Windows
svdm-windows

00:00:26

passed #36727
FreeBSD
syncdraw-freebsd

00:00:25

passed #36728
Linux
syncdraw-linux

00:01:13

passed #36725
FreeBSD
syncterm-freebsd

00:01:00

passed #36720
Linux
syncterm-linux

00:03:13

passed #36726
FreeBSD
syncterm-windows

00:01:44