polymorphic variants issue, for SPL debugging wrapper