Wherever, by statute of this state, collateral is required as security for the deposit of funds; or deposits are required to be made with any public official or department; or an investment of capital or surplus, or a reserve or other fund is required to be maintained consisting of designated securities, the bonds and other securities herein made eligible for investment shall also be eligible for such purpose.