Enable BSON and JSON serialization/deserialization of enum strings

This pull enables the BSON and JSON serialization/deserialization for enum strings. My tests ran successfully but please double check.