Fixed Ini::write() to cast objects to arrays