fix #597 proposals inside program element reference expressions