Fix assert messaging on fields/exclude checking. Closes #833