Add tl_val_copy function
Add new, get, put and delete functions for env