iref stack with dyn/auto mem
Refactor rename and additional test cases