Auto-detection of self parameter for closures.
Better tests for self parameter auto detection.