Handle string like a parameter, improve type checking
Start register optimization
Slight improvements to optimization
Improve register optimization