#KJ-55 Local classes - transform them into inner classes. Implemented a better way to augment constructor arguments for local classes. Extracted the extra argument to a separate function. Almost finished the local classes transformation.