Added auxiliar function which allows to store key,value pairs in userdata