Fixed citations in ipynb.
Fixed labels and citations in pandoc/ipynb. New tests.
merge