Improve public API.

Add functions:
- ucl_array_head - returns the first element
- ucl_array_tail - returns the last element