fixes a bug where an array of a type was incorrectly validated if defined using the type key
0.0.18