yason:encode wasn't exported, so losing generic