Fix for #2771.

Requires Merge:
- [ ] Revit2015
I added a case for DateTime. I'd need to know more about what you mean with "Currency". As I understand it, currency is only a custom format applied to the string representation of a decimal, in which case, the currency formatting would be lost when we do this, but we'd get a correct culturally invariant numeric format out.