Issue #2767643 by maxocub, TrevorBradley, sylus, heddn, mikeryan: Scalar to array migration returns NULL (cherry picked from commit ade5900d)