Memory leaks

Added other methods for accessing newly created map, set, list in get_set, get_map, get_list in order to avoid memory leaks.