Allow specifying of doctrine template implementations, closes #786