Minor changes to validator; Better error reporting for array validator