“An agreement for valuable consideration that a fund shall be applied in a particular way may found an injunction to restrain its application in another way. But if there be nothing more, such a stipulation will not amount to an equitable assignment. It is necessary to find, further, that an obligation has been imposed in favour of the creditor to pay the debt out of the fund.”