Introduce Loan::toCompoundViewObject method
Add interest_yearly_to field to schema
Do not fail on optional fields with null as value
Improve put_state test