Fix @memoized and @memoized_property decorators.