component: do not create ref for dynamic id (#1307)
allow dynamic id (BaseVar) to be specified (from state value or foreach), but
do not create a react reference for it, since that must be known at compile
time.
if a react ref is needed, then specify a string _at compile time_, not from
state.
fix #1302