Fixes condition in cases where allof but not oneof is defined

Closes #226