Memoize accessor helper methods that get called repeatedly

In `accessors.rb`, `self.getter_method_needed?` and `self.setter_method_needed?` get called for each attribute but their value never changes. No clean way to refactor repetition away so ideal candidate for memoization.