Within the JSONSerialize class when RData.Type is of type "matrix", RData.Value, which is a List<List<double?>> was being cast to a List. This cast throws an exception. As I have never contributed to an open source project on GitHub, I have only made these changes locally and would appreciate a 2nd opinion to confirm this issue.
