Harmonize methods for looking up simple and complex types