get_first_element function

Create a data accessor retrieving the first element of an array