Dump the unit in assert in refineType

Reviewed By: @ottoni

Differential Revision: D1504928