Added missing template parameter to DenseShape functions.