Fix some deprecation warnings in cdk-data-core.