add 'Array' to serialize method to help with postgresql array errors