Fixed support for multiple emits per document map function. j4p5 update required.