Support extensionless <reference> comments.

Fixes #344.
Error message is a bit misleading since it says only about failed attempt to find .ts file.