Moved code to check allowed attribute types to internal implementation.

TypeTraits class is now not needed at all.
Got rid of TypeTraits class altogether.
DebugTools: fixed compilation of Profiler.

Some change in recent GCC (4.7.2) caused this to fail building, now
using duration_cast<microseconds>() instead of microseconds(). Also
cleaned up the code by importing std::duration prefix.