Ensures that values in arrays are converted from PHP to DB values