transform2d: fix incorrect initialisation of Yscale

The Yscale parameter is incorrectly initialised if it requested, all but the
first entry is None.