Allow "on" and "attributes" to take either array or string for validators.