Added AnyQuantity to represent quantities of statically-unknown dimension.