This adds a simple `validate` function to COBs that is run on load. It allows COBs to check whether they are valid, once all operations are loaded, and return an error if not.