Support Unsafe Primitives and related API changes