Define constants and types inside classes instead of within namespaces. see #11