Improve IP literal resolution resiliency

Allow [xxx] syntax for IPv6 addresses, to facilitate usage with directly parsed URI components