I'm trying to merge wallet files together using RPC API calls. It seems that it is not possible to add addresses and mark them as change or as part of the key pool (reserve). The importwallet RPC call can do this. But it's not possible for existing addresses.
Also there should be a way to enumerate all addresses including reserve and to obtain the change/reserve flags for each address.