Better exception for unresolved type hints from doctrine/doctrine2#469