Better implementation of getFieldByOffset and getMethodByVtableIndex. Not tested and most probably buggy.