On com_loan, added in status types for loans and updated several other areas where knowing the status would be relevant, such as the makepayments form, the entity helper etc.