rewriteIdsRecursive: Foreign keys are now converted to strings