Pre-allocate result array in getAddress and use Appender in getAddressInfoImpl

Fixes issue #13159
Merge pull request #2351 from JakobOvrum/getaddress

Pre-allocate result array in getAddress