named enum for ClassFlags and StructFlags

depends on https://github.com/D-Programming-Language/druntime/pull/614