Added support for finding used ENames/namespaces, and stripping unused namespace declarations