[jmdb] Going for best of both worlds with the references