Fixed bug in attribute value memoization; added set support;