fix #1124 allow any type to qualify a static ref