Issue #1368508 by tim.plunkett, das-peter: Added Document and enforce nummeric array keys starting at 0 for ->result.