Better handling of case where template key does not match

Throw more precise exception information when key doesn't match and
use the Inflector class to create cache class name.

Fixes https://github.com/sulu-cmf/sulu/issues/233