Add insert_elem/3 and delete_elem/2 functions, deprecate setelem
in favour of set_elem

For Erlang versions prior to R16B, emulate corresponding BIFs
Merge pull request #859 from yrashk/insert-delete-element

Add insert_elem/3 and delete_elem/2 functions