Fundamental Physics Measurements and the Gamma-Ray Emission of Pulsars and Globular Clusters