Fixed error with DQL queries; Added array field conversion