Added FunctionReference
Added lope-to-foropencl target.
Minor cleanup.