Add DeclaredType to initial library construct (#627)

* Add declaredType to initial library construct
4 files changed