Fix single collection result as hash

force collection parameter in init_collection to be an array, and flatten it, so if original parameter is already an array, it won't break, if it's a single hash, will be converted to an array, as the code expects