make tie work without as_container_noref
fix some problems highlighted in generator test