This exhibit stirs the imagination, and both artists and art appreciators should benefit. “Heritage” is a remarkable crash course in artistic traditions, and a smart summary of contemporary art’s possibilities. “Heritage” isn’t careful or polite, as one would expect of the National Gallery; rather, it’s edgy and aggressive.