Add recursive walk on JSON-->PHP castObjectsToArrays method.