Align: Prevent deadlock when output is failing

When an output was failing to write characters (e.g., an EthernetServer
with no connected clients), Align would keep printing spaces
indefinately.
HexBits: Also work with enum (class) types

Because enums cannot be implicitly casted to / from integers and enum
classes do not have shift or and operations, the previous code did not
work. By explicitly casting to unsigned long and working from there,
enums can also be printed using HexBits.