WICKET-4941 Component.initModel() does not cause parent models to be initialized
Non-functional changes

Minor fixes in comments
Calculate local variable just once
Append char instead of String when possible