Avoid unnecessary sorting changes in the composer.lock

Sort links and keywords in ArrayDumper result (fixes issue #1499).