Use pointer for subtyping test instead of an offset

Signed-off-by: Julien Pagès <julien.projet@gmail.com>