Fixes #243 - caching in AttributedDestructuringPolicy closes over first seen object of a type rather than using the passed parameter.