Generated class initialization code is now factored in a single method per type (so that future lock and PInvoke initialization won't be duplicated on each static access).