It's not a bug but rather an undocumented feature. ToIP() and ToHostname() both return a table with some additional infos in the second return value. I don't remember if this was deliberately kept undocumented or not so I'll just leave it as it is right now...