Wow. This is fun. Sure is easy to get modules wrong when upgrading a v2+ project.
Also change UUID.Set() to convert nil to NULL in order for UUIDArray.Set() to support converting [][]byte slices that contain nil.