hacked out a way to create declarations from rally type definitions