Simple part of removing D1
Remove DMDV1 and DMDV2.
Remove STRUCTTHISREF
Remove SARRAYVALUE
Merge Kai's D1 removal commits.
Removed a few D1 leftovers.