Use typedef in source code for SourceOptions

This PR is related to the [discussion](https://github.com/openlayers/ol3/pull/1048/files#r6510451) that occurred in #1048. I'll update this PR's commits when #1048 is merged.