types+grammar: clarifying as 'external document' references, closes #187