Requests for comment/Typesafe enums

This RFC proposes that a typesafe enum mechanism be included in core. An implementation with tests and example use cases is provided.