Gauge Invariance and Weyl-polymer Quantization