support for records in regroup tag (close #191).