[libsmi] Error reporting with nested imports