Structural and functional analysis of non-canonical tandem-thioesterases