Fix substituted languages error, bump version to 0.5.1

Add a check to ensure that any substituted language is templateable.
This avoids parse errors in some situations (for instance,
Django projects by default substitute HTML with "Django Template"
type, which is not templateable)

Also bump version to 0.5.1 to prepare for releasing this fix.

This commit fixes #40