Verify that the type in a JLD file matches the loaded type