Generate toString methods for beans.