Added `reference_key` option to `map_attribute`