Add support for deferred types and speculative attribution Reviewed-by: jjg, dlsmith
Reviewed-by: darcy