Refactored `bulk` and `multisearch` command serialization loop.

Using `Array#map` instead of old school for loops.
Also renamed the variables.