Restored ptrgrp to indexentry

Implements #367