Fix caching of inverse functional properties