Fix recursive invocation memory leak issue
Make awlenv_copy recurse for parents