fixed for loop and typedef gen bugs
updated change log