Support passing a custom ArraySerializer for has_many associations

Thanks @phoet

Closes #316