fix number of returned values for no refinement in refine_reference()
fix make_l2_projection_data() for parameter variables