Implement static methods (fixes #1989).
Implement static attributes (fixes #1989).