[jmdb, nim] Some tweaks