Fix namegen, don't print classname for static fields in current class