minor optimization so that newObject and includedKeys use the same code