core: fix NextAddress, rename NextAddress → GetNextAddress