Pre-allocate result array in getAddress

Fixes issue [#13159](https://issues.dlang.org/show_bug.cgi?id=13159).