Added Reads and Writes support for Enumerations. Fixes #2050

Nonetheless you could, but it prevents testing issue.

For formatting: `./build clean scalariformFormat`