Fix problems making schema invalid such as reference to non-existing file, etc.
Merge pull request #16 from benmccann/invoices-transfers-fix

Fix problems making schema invalid such as reference to non-existing file, non-existing type, etc.