Implemented model to hash conversion logic, field arrays and field collections.