Fix bug when generating getter setter method for a boolean type.