PERF faster head, tail and size groupby methods
TST more coverage for groupby head and tail
Merge pull request #5533 from hayd/groupby_head_tail

PERF faster head, tail and size groupby methods