make sure keys explicitly listed in the schema are preserved when collapsing