Add closure-length/ref primitives