Improvements for "Copy Qualified Name"

Support nested methods, local classes and local
variables.