Fixed a bug with "static" methods in the Class.extend method.