[display] skip generated local vars in toplevel completion (closes #3326)