FIX Replace array keys in generated composer.json

Fixed an issue where the "branch-alias" value was set to
an array rather than a string (["3.2.x-dev","3.2.x-dev"]).