Fixed calculation of extension index for field access beyond directly stored fields

Signed-off-by: Stefan Marr <git@stefan-marr.de>