api: move slice type macros to public API