Kill Types.h, forward-declare types locally.

This should reduce compilation time (Types.h was including <memory>).