Support for the kind in the endblock

Example:
{% block css %}
... some other stuff
{% endblock css %}

Instead of (both are supported):
{% block css %}
... some other stuff
{% endblock %}
added additional tests
Merge pull request #453 from WoLpH/develop

Support for the kind in the endblock