fix potion_type_name, fix off-by-one type, fix VTABLE checks