Add model_of specialization to complex type familly

Fix improper behavior of meta-functions like upgrade and downgrade to work
correctly.