Recovering the full dimensionality of hyperentanglement in collinear photon pairs