Unified interface for primitive arrays
