first go on stencil
adjust to change in llvm-general

LocalReference and GlobalReference now have an additional type
add function locals
adjust skeletons to changes in llvm-general(-quote)
native: fix defunct permute
native: fix defunct transform
native: fold: wibble
fix function indexOfInt
fix faulty function arrayDataOp
adjust newBlock to work with llvm-general-quote
wibble