compiler/libec: Fixed setting class properties on static classes