Fixed the field offsets when multiple inheritance is involved.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>