adding a currentType method to get current source type if known

Alternative solution for the problem posed in #1313. See that PR for discussion.
So what might be easiest here would be to take the string and create a source object out of it and call src again. That will then reset currentType too.
```
else if (typeof source === 'string') {
  this.src({ src: source, type: '' });
}
```