corrected reference hintpaths
updated discriminated union package, and added option types.