Tests and proposed fix for #23834 (wrong default value on ArrayField)