Fixed index-ranged input registers shadowing multiple other register and adding calloc hook as well