lua backend: improved list implementation, support for simple classes.