[BZ-971004] fix grouped accessor when used in combination with inline cast