Do not use more memory in iajc.
Add convert and merge function and related tests.