Strong to weak localization transition and two-parameter scaling in a two-dimensional quantum dot array