Module intrinsics

Intrinsics that cannot be moved to core because they depend on alloc types.

Functions