adding a currentType method to get current source type if known

Alternative solution for the problem posed in #1313. See that PR for discussion.
Use `currentType_` instead of `srcType_` for the private property. That's how other properties are set up.