[container] handling bdev options + clone flags + use Foreign.Marshal.Utils