Allow $domain_search to be an array of items

This will make the template accept either a string of space-separated items or
an array.

    irb(main):001:0> domain_search = 'first second third'
    => "first second third"
    irb(main):002:0> Array(domain_search).join(' ')
    => "first second third"
    irb(main):003:0> domain_search = ['first', 'second', 'third']
    => ["first", "second", "third"]
    irb(main):004:0> Array(domain_search).join(' ')
    => "first second third"

Change-Id: I2c2aef90c5b20b3f085fb2d0c99ee2d9b175853b