fixed Firebase.transaction for complex values