Implemented Engine::merge() (fixes #2).