Exporting of a key has a problem, doesn't it: the key is still in the source wallet. There's no way to remove it, is there? Even if there is, it's easy to screw up and people will wonder where their money went.
So how about splitting this and putting importprivkey in default, but not dumpprivkey?
Does this mean that
dumpprivkey removes the private key from the wallet, because the documentation is not clear for me and i am too lazy to learn C++ (it could also just show the data of the key without removing it)?
Unfortunately i need both import and export and my C++ is limited to the C part without the (confusing

) ++, but i will try to use it if no better solution is implemented. Will send you and sipa 0.5 BTCs.
EDIT: Nice, your version also have importkey if i read your code correct, will try it out