Add Buffer type and primitives to the core