Fix symbol generation, handle invalid typehints
We had an invalid typehint so symbol generation was failing. I've
updated it to handle the failure with some helpful output and fixed the
issues that it caught.