Fix hash ordering bugs

MongoDB requires the command to come before the arguments, but this
isn't guaranteed when passing a hashref to ->run_command. Use an
arrayref for commands with arguments to make sure the order gets right.