Allow specifying of doctrine template implementations, closes #864