Use references in Externalizer

closes #124