Added explicit casting to intersect. Fixes AccelerateHS/accelerate#79
Added support for foreign scalar functions. Also renamed foreign utility functions so as to differentiate between the different types of FFI calls.
fix: canonicalizePath fails for non-existent directories