compiler - cpp11: added std::hash specialization generation for enums

will be obsolete with C++14

removed unused BracketGuard class
enhanced other guards to support nested classes/methods