Polymer quantization of the free scalar field and its classical limit