compatibility with mndrix existing code

These two small patches make library(typedef) work better with some existing type-using code I have.  I think they should both be generally applicable for others using the library.