message to communicate type information being serialized

- Added a message struct to pass the information about the type being
serialized
- changed unit test to reflect this change
- started the optimization process on the mapperbuild task