Fix for bug #4801: Correctly implement lsa lookup levels for lookupnames.