AS7-6776 Do cleanup of DeploymentUnit references

- this fixes few memory leaks that could occur on re-deployment

@ssilvert this should fix your problems with new jsf