add explicitType and origin metadata keys (close #125, #124)