AS7-6776 Do cleanup of DeploymentUnit references

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