Improve "Writing a Loader" doc

Loader::getSource must return an object. It's not obvious unless you check the source.
Little fix
Set types
Merge pull request #13 from doup/patch-1

Little improvement on custom template loader example