Fix bug in handling -Ydelambdafy:method and value classes.