Lookup values from a dictionary with aliasing, mapping, and flattenining.