FT-93 Add a stronger sanity check, fix a bug where we wouldn't properly
update the total size when convering to dbt format.