Adding Lampietti's changes back in

transform arguments of the 'register' method in a real JSON Array, as per https://github.com/lampietti/ZeroConf/commit/7e44f00cb063f2082cea49acfe6cfee52ea701d8