Added functionality to add a single export function to a type for use by compileExpression()