Add test exercising attribute_size<optional<T> >
Fix attribute_size<optional<T> >