Fixed stack overflow in Fdb.GetMaxSafeApiVersion()
Merge branch 'master' into refac_tuples