cgen changes
unwrap extern blas op inputs
more codgen and change to use remapWithRef
Merge branch 'master' into cgen