PLAT-5223 made function handle Object arrays.