Bug fix: Vector of neighbor distances needs to be C-array.