Fix command-line argument handling in test/serialize.lua