Compute the offset from the record layout. Unfortunately, not all the test cases from the current interpreter work.