ADD: array_elem_ptr() and array_append_ptr() functions to make work with structures easier.