added flatten function to array and bumped patch version