[WIP] inplace

This PR implements the basic machinery for inplace ckernels and arrfuncs.