kalua: filetype: tar() implemented and some cleanups