Fix typespec declaration syntax bugs