A wrapper around the objc_getAssociatedObject and objc_setAssociatedObject functions.