utils: use proper index in ni_string_array_remove
socket: use proper array in socket array activate
Merge pull request #189 from mtomaschewski/array-remove

fixed array remove typo and socket array activate