Fix for references.ts being ignored by transforms

resolves #148