fix get_grouped_opcodes

Fix get_grouped_opcodes function to return groups of tag&codes arrays instead of single group of tag&codes arrays as in python (based on http://hg.python.org/cpython/file/38b218b68d7f/Lib/difflib.py) to make generating unified diffs with difflib.js possible.