more changes to uuid.rb from PR on main repo for AR 4.0 support