Some fixes and improvement of DeadCodeRule.