Validator: fixed array validator on int keys and removed obsolete code