Added support for export array of model to json

1. Changed toExport parameter name to propertyNamesToExport
2. Added support for exporting array of model classes to array of dictionary or to json string.