Clean up internal array code

Remove excess asserts in sampgdk_get_array_ptr() and rename it to
get_element_ptr (prefix isn't needed since it's static).