lua backend: support simple multiple inheritance