Changed the name of the enum join_type to access_type. It makes much more
sense to me to call this access_type as join_type is not an intuitive term
at all for this and caused me some confusion. Updated parts of the code that
used this enum based on this change.