improve PadGroup::get_extend and ::at_pos methods