Exotic symmetries, duality, and fractons in 2+1-dimensional quantum field theory