value_tostring returns ref str; template now always uses str_lookup on builtins; tightening up constness