In FreeBSD, "md" devices are "memory disks" aka, RAM disks. Their content will go away and be lost if you reboot or re-create them. The size is specified using the -s flag to mdconfig or in fstab (see the fstab man page, under the EXAMPLES section, there is a reference to an md10). You can resize them using the mdconfig -r command, but keep in mind that this only resizes the md block device and doesn't resize the filesystem on the md. It's probably easier to just recreate the md than to bother with resizing both the md then resizing the filesystem, but it should be doable using growfs.
I should point out to you that while having /tmp as md is fine, having /var as md is probably a bad idea. While the data under /var is "variable" by definition, it is not transient. If you make /var a md you will lose this data after you reboot. For example your pkg database is stored there, as well as many other important files. Making /var a md will mean that, for example, if you reboot you will lose all your pkg info and be unable to pkg upgrade as there will be no record of what's installed.