Introduce getTransientSchema, fix #283

@raymondfeng I will probably push some more tiny fixes here. I'm looking into fixing the remaining mongodb connector tests, which will be a separate PR.