Refactor Memory#[]= to use existing method
Fix YARD docs to be more consistent
Change error message to be consistent