Add spec for named function in classes
Clean up double variables in class bodies (class literal function)