Fix bug #548

const wxString& RefType